package com.whsxt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/page")
public class PageController {

    @RequestMapping("/toMain.do")
    public String toMain(){
        return "main";
    }

    @RequestMapping("/toUserList.do")
    public String toUserList(){
        return "user/list";
    }

    @RequestMapping("/toRoleList.do")
    public String toRoleList(){
        return "role/list";
    }

    @RequestMapping("/toPermissionList.do")
    public String toPermissionList(){
        return "permission/list";
    }

    @RequestMapping("/toCarList.do")
    public String toCarList(){
        return "car/list";
    }

    @RequestMapping("/toCustomerList.do")
    public String toCustomerList(){
        return "customer/list";
    }

    @RequestMapping("/toRentList.do")
    public String toRentList(){
        return "rent/list";
    }

    @RequestMapping("/toReturnList.do")
    public String toReturnList(){
        return "return/list";
    }

}
